<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = 1;
include $this->admin_tpl('header', 'admin');
?>
<form method="post" name="frmlist" action="">
<div class="table-list">
	<table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="30" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
            <th align="center">序号</th>
            <th align="center">名称</th>
            <th align="center">中文显示</th>
            <th align="center">是否显示在导航</th>
            <th align="center">显示排序</th>            
            <th align="center">链接</th>
            <th align="center">备注</th>
			<th align="center">管理操作</th>
          </tr>
        </thead>
          <?php
if( is_array($lists) && count($lists)>0 ){
	foreach($lists as $item){
		?>
          <tr>
            <td align="center" width="35"><input type="checkbox" name="id[]" value="<?php echo $item['id']?>"></td>
            <td align="center"><?php echo $item['id']?></a></td>
            <td align="center"><?php echo $item['name']?></td>
            <td align="center"><?php echo $item['show_name']?></td>
            <td align="center"><?php echo $showIndexDesc[$item['is_show']]?></td>
            <td align="center"><?php echo $item['show_index']?></td>
            <td align="center"><?php echo $item['url']?></td>
            <td align="center"><?php echo $item['remark'];?></td>
            <td align="center">
            <a href='/index.php?m=hchassorttype&c=crud&a=myedit&id=<?php echo $item['id'] ?>' >修改</a>
            |
			<a href="/index.php?m=hchassorttype&c=crud&a=mydelone&id=<?php echo $item['id'] ?>" onclick="return confirm('确认删除？')">删除</a>
			</td>
          </tr>
          <?php
	}
}
?>
		<tr>
			<td colspan="10">
				<input type="submit" class="button" name="submitdel" onClick="doDel()" value="删除"/>
			</td>
		</tr>
        </tbody>
      </table>
</div>
<div id="pages"><?php echo $pages ?></div>
</form>
</body>
<script type="text/javascript">
function doDel(){
	if(confirm('确认删除吗？')){
		document.frmlist.action='/index.php?m=hchassorttype&c=crud&a=mydel';
		submitchk.submit();
	}
}
</script>
</html>